package priv.lirenhe.exam02.A;

import java.util.Random;

public class Example02 {

	public static void main(String[] args) {
		/*SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		
		Date today = new Date();
		String todayStr = sdf.format(today);
		System.out.println(todayStr);
		
		Calendar cal = Calendar.getInstance();
		cal.setTime(today);
		cal.add(Calendar.DATE, -1);
		Date yesteday = cal.getTime();
		String yestedayStr = sdf.format(yesteday);
		
		System.out.println(yestedayStr);*/
		
		Long curr = System.currentTimeMillis();
		Random ran = new Random();
		int ranInt = ran.nextInt(99);
		String strId = curr + ranInt + "";
		Long genId = new Long(strId);
		System.out.println(genId);
	}
}

